package com.as.measurement.sender.impl;



import java.util.Vector;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.osgi.service.component.ComponentContext;

import com.as.measurement.sender.SenderService;
import com.as.measurements.client.core.models.JperfStreamResult;


public class SenderServiceImpl implements SenderService{

	

	/**
	 * Logger
	 */
	private Log _logger = LogFactory.getLog(getClass().getName());

	public SenderServiceImpl() {
		// TODO
	}

	public void Send(JperfStreamResult	finalResults) {
		
		Sender send = new Sender (finalResults);
		send.start();

	}
	
	
	protected void activate(ComponentContext context) {
		_logger.info("Activated component:" + getClass().getName());
	}

	protected void deactivate(ComponentContext context) {
		_logger.info("Desactivate component:" + getClass().getName());

	}

}